/**
 * Created by vivienfanghua on 2016/7/27.
 */
var codeMessage=require('./code')
//-- 需要admin权限
exports.adminRequired = function (req, res, next) {}

//-- 需要有用户
exports.userRequired = function (req, res, next) {}

//-- 需要有用户并登录
exports.signinRequired = function (req, res, next) {
    if (!req.session.user) {
        return res.send({message:codeMessage.user_not_login});
    }
}

//-- 屏蔽用户 -_-
exports.blockUser = function (req, res, next) {}